package cn.com.tianpeidong.restaurantadmin.common.web.constant;

import java.util.*;

/**
 * @author tianpeidong
 * @version 创建时间: 19-3-25 下午1:17
 */
public class ProjectConstant {

    private ProjectConstant() {

    }

    public static final int SUCCESS = 1;
    public static final int FAIL = 0;
    public static final int MIN_ID = 1;

    public static final int INIT_VERSION = 1;
    public static final int VERSION_STEP = 1;

    public static final int DEFAULT_PERMISSION_SIZE = 4;

    public static final Map<Integer, String> PERMISSION_MAP_CH = new HashMap<Integer, String>() {
        {
            put(0, "查看");
            put(1, "添加");
            put(2, "修改");
            put(3, "删除");
        }
    };
    public static final Map<Integer, String> PERMISSION_MAP_EN = new HashMap<Integer, String>() {
        {
            put(0, "list");
            put(1, "add");
            put(2, "edit");
            put(3, "delete");
        }
    };

    public static final String DEFAULT_PASSWORD = "password";
    public static final int DEFAULT_PASSWORD_LENGTH = 8;
    public static final int MAX_PASSWORD_LENGTH = 20;

    public static final long DEFAULT_ADMIN_ROLE_ID = 5;
    public static final long DEFAULT_ADMIN_ID = 9;


}
